package com.sdy.kzyy.biz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.kzyy.biz.dto.StoreManageDTO;
import com.sdy.kzyy.biz.model.Store;
import com.sdy.kzyy.biz.dto.StoreDTO;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2020-03-04
 */
public interface StoreMapper extends BaseMapper<Store> {
    List<StoreDTO> getAreaPage(@Param("areaCode") String areaCode , Page<StoreDTO> page);
    Integer getAreaPageSize(@Param("areaCode") String areaCode);
    List<StoreDTO> getNamePage(@Param("name") String name , Page<StoreDTO> page);
    Integer getNamePageSize(@Param("name") String name);

    List<StoreManageDTO> getStoreManagePage(Page page, @Param("name")String name, @Param("storeCode")String storeCode);
}
